import type { CultivationSkillItemConfig } from '../../data/item/type';
import type { ConditionProgress } from '../../systems/condition-checker/type';

/** 玩家功法实例 */
export interface CultivationSkill {
  /** 功法ID */
  skillId: string;
  /** 当前等级 */
  currentLevel: number;
  /** 是否已解锁 */
  isUnlocked: boolean;
  /** 是否主修功法 */
  isMain: boolean;
  /** 突破进度 */
  breakthroughProgress: Record<string, any>;
}

export interface CultivationSkillUpgradeProgressInfo {
  skill: CultivationSkill;
  skillConfig: CultivationSkillItemConfig;
  skillUpgradeInfo: ConditionProgress[];
  isMaxLevel: boolean;
  /** 功法熟练度名称 */
  masteryLevelDisplayName: string;
  /** 修炼速度等级总加成 */
  cumulativeSpeedBonus: number;
}
